package elasticSearch.Controller;

import elasticSearch.DAO.InspectTaskExecDetailMapper;
import elasticSearch.Entity.InspectTaskExecDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

@Service
public class UserService{

    @Autowired
    private ApplicationEventPublisher applicationEventPublisher;


    public void register(UserRegisterBO userRegisterBO) {
        System.out.println("用户：" + userRegisterBO.getName() + " 已注册！");
        applicationEventPublisher.publishEvent(new UserRegisterEvent(userRegisterBO));
    }






}
